<!--
<?php
print <<<EOT
--> 
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="MainTable">
  <tr> 
    <td height="100" valign="top" class="Main"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="dragTable" >
        <tr> 
          <td class="head">$MSG</td>
        </tr>
        <tr> 
          <td class="middle"> 
            <!--
EOT;
if($job=="manage"){
print <<<EOT
-->
            <table width="100%" border="0" cellspacing="1" cellpadding="3">
              <form name="form1" method="post" action="?job=$job">
                <tr align="center"> 
                  <td width="6%" bgcolor="#F9F9F9">ID</td>
                  <td width="41%" bgcolor="#F9F9F9">标 题</td>
                  <td width="14%" bgcolor="#F9F9F9">发表时间</td>
                  <td width="10%" bgcolor="#F9F9F9">页码</td>
                  <td width="9%" bgcolor="#F9F9F9">排序</td>
                  <td width="10%" bgcolor="#F9F9F9">修改</td>
                  <td width="10%" bgcolor="#F9F9F9">删除</td>
                </tr>
                <!--
EOT;
foreach($listdb AS $key=>$rs){
print <<<EOT
-->
                <tr class="trA" onmouseover="this.className='trB'" onmouseout="this.className='trA'"> 
                  <td width="6%" align="center">$rs[rid]</td>
                  <td width="41%"> &nbsp;<a href="..$webdb[path]/bencandy.php?fid=$rsdb[fid]&id=$aid&page=$rs[i]" target="_blank">$rs[subhead]</a></td>
                  <td width="14%" align="center"> &nbsp;$rs[postdate]</td>
                  <td width="10%" align="center">第 $rs[i] 页</td>
                  <td width="9%" align="center"> &nbsp; 
                    <!--
EOT;
if($rs[i]>1){
print <<<EOT
-->
                    <input type="text" name="orderDB[{$rs[rid]}]" size="3" value="{$rs[i]}">
                    <!--
EOT;
}print <<<EOT
-->
                  </td>
                  <td width="10%" align="center"> 
                    <!--
EOT;
if($rs[i]==1){
print <<<EOT
-->
                    <a href="?job=edit&aid=$rs[aid]&mid=$mid&only=$only">修改</a> 
                    <!--
EOT;
}else{print <<<EOT
-->
                    <a href="?job=edit_more&rid=$rs[rid]&mid=$mid&only=$only&aid=$rs[aid]">修改</a> 
                    <!--
EOT;
}print <<<EOT
-->
                  </td>
                  <td width="10%" align="center"><a href="?action=delete&rid=$rs[rid]&mid=$mid&only=$only&aid=$rs[aid]">删除</a></td>
                </tr>
                <!--
EOT;
}print <<<EOT
-->
                <tr class="trA" onmouseover="this.className='trB'" onmouseout="this.className='trA'"> 
                  <td colspan="7" align="center"> 
                    <input type="submit" name="Submit" value="修改以上排序">
                    <input type="hidden" name="step" value="2">
                    <input type="hidden" name="aid" value="$aid">
                    <input type="hidden" name="mid" value="$mid">
                    <input type="hidden" name="only" value="$only">
                  </td>
                </tr>
              </form>
            </table>
            <!--
EOT;
}else{print <<<EOT
--><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
              <td style="padding:5px;">
$show_guide

            </td>
        </table>
            <table width="100%" border="0" cellspacing="1" cellpadding="3" style='TABLE-LAYOUT: fixed;WORD-WRAP: break-word' id="list_sort">
              <tr align="center" class="head_in"> 
                <td width="8%">FID</td>
                <td width="37%">栏 目 名 称</td>
                <td width="13%">类型</td>
                <td width="14%">投稿数量</td>
                <td width="14%">管理内容</td>
                <td width="14%">我要投稿</td>
              </tr>
              <!--
EOT;
foreach($sortdb AS $key=>$rs){
if(!$page&&$webdb[HideNopowerPost]&&!$rs[type]&&!$rs[post])continue;
print <<<EOT
-->
              <tr  class="trA" onmouseover="this.className='trB'" onmouseout="this.className='trA'"> 
                <td  align="center" width="8%" >{$rs[fid]}</td>
                <td  align="left" width="37%" >$rs[icon]【<a href='$webdb[www_url]$webdb[path]/list.php?fid=$rs[fid]' target="_blank">{$rs[name]}</a>】<span class='sort_span'></span></td>
                <td  align="center" width="13%" > 
                  <!--
EOT;
if($rs[type]==2){print <<<EOT
-->
                  <font color="#0000FF">文章</font> 
                  <!--
EOT;
}elseif($rs[type]==1){print <<<EOT
-->
                  <a href="?lfj=$lfj&jobs=choose&job=$job&only=$only&mid=$mid&fid=$rs[fid]"><font color="#FF0000">大分类</font></a> 
                  <!--
EOT;
}else{print <<<EOT
-->
                  子栏目 
                  <!--
EOT;
}print <<<EOT
-->
                </td>
                <td align="center" width="14%" >&nbsp;$rs[NUM]</td>
                <td align="center" width="14%" >&nbsp;$rs[do_art]</td>
                <td align="center" width="14%" >&nbsp;$rs[post]</td>
              </tr>
              <!--
EOT;
}print <<<EOT
-->
            </table>
            <div align="center" style="margin:10px;">$showpage</div>
            <script language="JavaScript" src="images/sort.js"></script>
            <script language="JavaScript">
<!--
load_sort_td('$webdb[PostSortStep]');
//-->
</script>
            <!--
EOT;
}print <<<EOT
-->
          </td>
        </tr>
        <tr>
          <td class="foot"></td>
        </tr>
      </table>
      <br>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="dragTable" >
        <tr> 
          <td class="head">投稿注意事项!</td>
        </tr>
        <tr> 
          <td class="middle" style="padding:8px;line-height:150%;">$webdb[PostNotice]</td>
        </tr>
        <tr>
          <td class="foot"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<!--
EOT;
?>
-->
